/**
 * TO BE DETERMINED
 */
package org.eichar.client;

import org.eichar.client.question.TranslationQuestion;
import org.eichar.client.shared.Word;

/**
 * 
 * @author Jesse
 */
public class DataAccessImpl implements DataAccess {

    private I18N i18n;

    private WidgetFactory widgetFactory;

    public DataAccessImpl(I18N i18n, WidgetFactory widgetFactory) {
        this.widgetFactory = widgetFactory;
        this.i18n = i18n;
    }

    /**
     * @see org.eichar.client.DataAccess#addQuestion(org.eichar.client.Question)
     */
    public void addQuestion(Question question) {
        // TODO Auto-generated method stub

    }

    /**
     * @see org.eichar.client.DataAccess#addTranslation(org.eichar.shared.Word,
     *      org.eichar.shared.Word)
     */
    public void addTranslation(Word from, Word to) {
        // TODO Auto-generated method stub

    }

    /**
     * @see org.eichar.client.DataAccess#getQuestion()
     */
    public Question getQuestion() {
        // TODO do a real request
        return new TranslationQuestion(
                Word.get("To Be", "en"), new Word[] { Word.get("Sein", "de") }, i18n, widgetFactory); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
    }

}
